package www.ld.com.domain.vo;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@AllArgsConstructor
@ApiModel("分页结果")
@Accessors(chain = true)
public class PageRestVO<T>   {
    @ApiModelProperty("总页数")
    private Long pages; //总页数
    @ApiModelProperty("总条数")
    private Long total; //总条数
    @ApiModelProperty("当前页")
    private Long current;//当前页
    @ApiModelProperty("size")
    private Long size;//页大小
    @ApiModelProperty("数据")
    private List<T> content;//数据

}
